#!/bin/bash

case $1 in
'a') echo hello;;
'b') echo good;;
esac

case $2 in
1) 
echo 1;;
2)
echo 2;;
esac

if [ $3 ]
then 
echo '$3'
else
echo 'nothing'
fi

